module.exports = {
  pages: {
    index: {
      entry: "src/main.js",
    },
  },
  transpileDependencies: true,
  /*关闭语法检查*/
  lintOnSave: false,
  //开启代理服务器(方式一)
  // devServer: {
  //   proxy: "http://localhost:5000",
  // },
  //开启代理服务器(方式二)
  devServer: {
    proxy: {
      "/jingcheng": {
        target: "http://localhost:5000",
        pathRewrite:{'^/jingcheng':''},
        ws: true,
        changeOrigin: true,
      },
      "/jc": {
        target: "http://localhost:5001",
        pathRewrite:{'^/jc':''},
      },
    },
  },
};
